/**
 * 滚动到底部触发事件
 * @param callback {Function} 回调函数
 */
const handleScroll = (callback) => {
    const { scrollTop, clientHeight, scrollHeight } = document.documentElement;
    // 判断是否滚动到底部
    if (scrollTop + clientHeight >= scrollHeight) {
        console.log('handleScroll')
        callback()
    }
};
export default handleScroll;
